// Geometry.cpp
//
//////////////////////////////////////////////////////////////////////

#include "Geometry.h"
#include "Engine3D.h"
#include "OBB.h"

Geometry::Geometry(){
	bbox=new OBB(this);
}

Geometry::~Geometry(){

}

void Geometry::render(Engine3D *e){
	e->render(this);
}

LIB3D_RETURN Geometry::updateBVol(){
	bbox->updateVolume();
	dirty=0;
	return LIB3D_OK;
}

OBB * Geometry::getBVol(){
	return Visual3D::getBVol();
}
